Integrand size = 28, antiderivative size = 152 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^{7/2}} \, dx=\frac {4 b f p q}{15 h (f g-e h) (g+h x)^{3/2}}+\frac {4 b f^2 p q}{5 h (f g-e h)^2 \sqrt {g+h x}}-\frac {4 b f^{5/2} p q \text {arctanh}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{5 h (f g-e h)^{5/2}}-\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 h (g+h x)^{5/2}} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 152, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {2442, 53, 65, 214, 2495} \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^{7/2}} \, dx=-\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 h (g+h x)^{5/2}}-\frac {4 b f^{5/2} p q \text {arctanh}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{5 h (f g-e h)^{5/2}}+\frac {4 b f^2 p q}{5 h \sqrt {g+h x} (f g-e h)^2}+\frac {4 b f p q}{15 h (g+h x)^{3/2} (f g-e h)} \]
[In]
[Out]
Rule 53
Rule 65
Rule 214
Rule 2442
Rule 2495
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{(g+h x)^{7/2}} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = -\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 h (g+h x)^{5/2}}+\text {Subst}\left (\frac {(2 b f p q) \int \frac {1}{(e+f x) (g+h x)^{5/2}} \, dx}{5 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = \frac {4 b f p q}{15 h (f g-e h) (g+h x)^{3/2}}-\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 h (g+h x)^{5/2}}+\text {Subst}\left (\frac {\left (2 b f^2 p q\right ) \int \frac {1}{(e+f x) (g+h x)^{3/2}} \, dx}{5 h (f g-e h)},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = \frac {4 b f p q}{15 h (f g-e h) (g+h x)^{3/2}}+\frac {4 b f^2 p q}{5 h (f g-e h)^2 \sqrt {g+h x}}-\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 h (g+h x)^{5/2}}+\text {Subst}\left (\frac {\left (2 b f^3 p q\right ) \int \frac {1}{(e+f x) \sqrt {g+h x}} \, dx}{5 h (f g-e h)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = \frac {4 b f p q}{15 h (f g-e h) (g+h x)^{3/2}}+\frac {4 b f^2 p q}{5 h (f g-e h)^2 \sqrt {g+h x}}-\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 h (g+h x)^{5/2}}+\text {Subst}\left (\frac {\left (4 b f^3 p q\right ) \text {Subst}\left (\int \frac {1}{e-\frac {f g}{h}+\frac {f x^2}{h}} \, dx,x,\sqrt {g+h x}\right )}{5 h^2 (f g-e h)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = \frac {4 b f p q}{15 h (f g-e h) (g+h x)^{3/2}}+\frac {4 b f^2 p q}{5 h (f g-e h)^2 \sqrt {g+h x}}-\frac {4 b f^{5/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{5 h (f g-e h)^{5/2}}-\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 h (g+h x)^{5/2}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.06 (sec) , antiderivative size = 91, normalized size of antiderivative = 0.60 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^{7/2}} \, dx=\frac {-4 b f p q (g+h x) \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},1,-\frac {1}{2},\frac {f (g+h x)}{f g-e h}\right )+6 (f g-e h) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 h (-f g+e h) (g+h x)^{5/2}} \]
[In]
[Out]
\[\int \frac {a +b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )}{\left (h x +g \right )^{\frac {7}{2}}}d x\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 427 vs. \(2 (128) = 256\).
Time = 0.37 (sec) , antiderivative size = 863, normalized size of antiderivative = 5.68 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^{7/2}} \, dx=\left [\frac {2 \, {\left (3 \, {\left (b f^{2} h^{3} p q x^{3} + 3 \, b f^{2} g h^{2} p q x^{2} + 3 \, b f^{2} g^{2} h p q x + b f^{2} g^{3} p q\right )} \sqrt {\frac {f}{f g - e h}} \log \left (\frac {f h x + 2 \, f g - e h - 2 \, {\left (f g - e h\right )} \sqrt {h x + g} \sqrt {\frac {f}{f g - e h}}}{f x + e}\right ) + {\left (6 \, b f^{2} h^{2} p q x^{2} - 3 \, a f^{2} g^{2} + 6 \, a e f g h - 3 \, a e^{2} h^{2} + 2 \, {\left (7 \, b f^{2} g h - b e f h^{2}\right )} p q x - 3 \, {\left (b f^{2} g^{2} - 2 \, b e f g h + b e^{2} h^{2}\right )} p q \log \left (f x + e\right ) + 2 \, {\left (4 \, b f^{2} g^{2} - b e f g h\right )} p q - 3 \, {\left (b f^{2} g^{2} - 2 \, b e f g h + b e^{2} h^{2}\right )} q \log \left (d\right ) - 3 \, {\left (b f^{2} g^{2} - 2 \, b e f g h + b e^{2} h^{2}\right )} \log \left (c\right )\right )} \sqrt {h x + g}\right )}}{15 \, {\left (f^{2} g^{5} h - 2 \, e f g^{4} h^{2} + e^{2} g^{3} h^{3} + {\left (f^{2} g^{2} h^{4} - 2 \, e f g h^{5} + e^{2} h^{6}\right )} x^{3} + 3 \, {\left (f^{2} g^{3} h^{3} - 2 \, e f g^{2} h^{4} + e^{2} g h^{5}\right )} x^{2} + 3 \, {\left (f^{2} g^{4} h^{2} - 2 \, e f g^{3} h^{3} + e^{2} g^{2} h^{4}\right )} x\right )}}, -\frac {2 \, {\left (6 \, {\left (b f^{2} h^{3} p q x^{3} + 3 \, b f^{2} g h^{2} p q x^{2} + 3 \, b f^{2} g^{2} h p q x + b f^{2} g^{3} p q\right )} \sqrt {-\frac {f}{f g - e h}} \arctan \left (-\frac {{\left (f g - e h\right )} \sqrt {h x + g} \sqrt {-\frac {f}{f g - e h}}}{f h x + f g}\right ) - {\left (6 \, b f^{2} h^{2} p q x^{2} - 3 \, a f^{2} g^{2} + 6 \, a e f g h - 3 \, a e^{2} h^{2} + 2 \, {\left (7 \, b f^{2} g h - b e f h^{2}\right )} p q x - 3 \, {\left (b f^{2} g^{2} - 2 \, b e f g h + b e^{2} h^{2}\right )} p q \log \left (f x + e\right ) + 2 \, {\left (4 \, b f^{2} g^{2} - b e f g h\right )} p q - 3 \, {\left (b f^{2} g^{2} - 2 \, b e f g h + b e^{2} h^{2}\right )} q \log \left (d\right ) - 3 \, {\left (b f^{2} g^{2} - 2 \, b e f g h + b e^{2} h^{2}\right )} \log \left (c\right )\right )} \sqrt {h x + g}\right )}}{15 \, {\left (f^{2} g^{5} h - 2 \, e f g^{4} h^{2} + e^{2} g^{3} h^{3} + {\left (f^{2} g^{2} h^{4} - 2 \, e f g h^{5} + e^{2} h^{6}\right )} x^{3} + 3 \, {\left (f^{2} g^{3} h^{3} - 2 \, e f g^{2} h^{4} + e^{2} g h^{5}\right )} x^{2} + 3 \, {\left (f^{2} g^{4} h^{2} - 2 \, e f g^{3} h^{3} + e^{2} g^{2} h^{4}\right )} x\right )}}\right ] \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^{7/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Exception generated. \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^{7/2}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 324 vs. \(2 (128) = 256\).
Time = 0.34 (sec) , antiderivative size = 324, normalized size of antiderivative = 2.13 \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^{7/2}} \, dx=\frac {4 \, b f^{3} h p q \arctan \left (\frac {\sqrt {h x + g} f}{\sqrt {-f^{2} g + e f h}}\right )}{5 \, {\left (f^{2} g^{2} h^{2} - 2 \, e f g h^{3} + e^{2} h^{4}\right )} \sqrt {-f^{2} g + e f h}} - \frac {2 \, b p q \log \left ({\left (h x + g\right )} f - f g + e h\right )}{5 \, {\left (h x + g\right )}^{\frac {5}{2}} h} + \frac {2 \, {\left (3 \, b f^{2} g^{2} p q \log \left (h\right ) - 6 \, b e f g h p q \log \left (h\right ) + 3 \, b e^{2} h^{2} p q \log \left (h\right ) + 6 \, {\left (h x + g\right )}^{2} b f^{2} p q + 2 \, {\left (h x + g\right )} b f^{2} g p q - 2 \, {\left (h x + g\right )} b e f h p q - 3 \, b f^{2} g^{2} q \log \left (d\right ) + 6 \, b e f g h q \log \left (d\right ) - 3 \, b e^{2} h^{2} q \log \left (d\right ) - 3 \, b f^{2} g^{2} \log \left (c\right ) + 6 \, b e f g h \log \left (c\right ) - 3 \, b e^{2} h^{2} \log \left (c\right ) - 3 \, a f^{2} g^{2} + 6 \, a e f g h - 3 \, a e^{2} h^{2}\right )}}{15 \, {\left ({\left (h x + g\right )}^{\frac {5}{2}} f^{2} g^{2} h - 2 \, {\left (h x + g\right )}^{\frac {5}{2}} e f g h^{2} + {\left (h x + g\right )}^{\frac {5}{2}} e^{2} h^{3}\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^{7/2}} \, dx=\int \frac {a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )}{{\left (g+h\,x\right )}^{7/2}} \,d x \]
[In]
[Out]